package com.lyz.remote.bean;

import java.util.Date;

/**
 * token收集日志
 * @author luyongzhao
 *
 */
public class ApnsLog {
	
	private String tableName;
	
//	private long id;
	private long uid;
	private long clientId;
	private Date createTime;
	private String deviceId;
	private long uptime;
	private String d_id;
	private String os_info;
	private String device_token;
	private String c_version;
	private String ip;
	
	public ApnsLog(String tableName, long uid, long clientId, Date createTime, String deviceId, long uptime, String d_id, String os_info, String deviceToken, String c_version, String ip){
		this.tableName = tableName;
//		this.id = id;
		this.uid = uid;
		this.clientId = clientId;
		this.createTime = createTime;
		this.deviceId = deviceId;
		this.uptime = uptime;
		this.d_id = d_id;
		this.os_info = os_info;
		this.device_token = deviceToken;
		this.c_version = c_version;
		this.ip = ip;
	}
	
	public ApnsLog(String tableName, long uid, long clientId, Date createTime, String deviceId, String d_id,  String deviceToken, String c_version, String os_info){
		this.tableName = tableName;
//		this.id = id;
		this.uid = uid;
		this.clientId = clientId;
		this.createTime = createTime;
		this.deviceId = deviceId;
		this.uptime = System.currentTimeMillis();
		this.d_id = d_id;
		this.os_info = os_info;
		this.device_token = deviceToken;
		this.c_version = c_version;
		this.ip = "";
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

//	public long getId() {
//		return id;
//	}
//
//	public void setId(long id) {
//		this.id = id;
//	}

	public long getUid() {
		return uid;
	}

	public void setUid(long uid) {
		this.uid = uid;
	}

	public long getClientId() {
		return clientId;
	}

	public void setClientId(long clientId) {
		this.clientId = clientId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public long getUptime() {
		return uptime;
	}

	public void setUptime(long uptime) {
		this.uptime = uptime;
	}

	public String getD_id() {
		return d_id;
	}

	public void setD_id(String d_id) {
		this.d_id = d_id;
	}

	public String getOs_info() {
		return os_info;
	}

	public void setOs_info(String os_info) {
		this.os_info = os_info;
	}

	public String getDevice_token() {
		return device_token;
	}

	public void setDevice_token(String device_token) {
		this.device_token = device_token;
	}

	public String getC_version() {
		return c_version;
	}

	public void setC_version(String c_version) {
		this.c_version = c_version;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	
	
	
}
